//
//  HXDGoodsTableViewCell.m
//  qingDaoCircleOfLife
//
//  Created by huxuedong on 15/11/29.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

#import "HXDGoodsTableViewCell.h"

@interface HXDGoodsTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UIButton *introBitton;

@end

@implementation HXDGoodsTableViewCell

+ (instancetype)goodsTableViewCell {
    return [[NSBundle mainBundle] loadNibNamed:@"HXDGoodsTableViewCell" owner:nil options:nil].lastObject;
}

- (void)awakeFromNib {
    self.introBitton.layer.cornerRadius = 5;
    self.introBitton.layer.masksToBounds = YES;
}

- (void)setGoods:(HXDGoods *)goods {
    _goods = goods;
    self.titleLabel.text = goods.title;
    self.infoLabel.text = goods.intro;
    self.priceLabel.text = [NSString stringWithFormat:@"￥%@",goods.price];
}

@end
